package org.anjan.dp.decorator.coffeesample;

/**
 * Created by chebbaso on 12/4/14.
 */
public class ToppingDecorator implements Ingredient {
    private Ingredient ingredient;

    public ToppingDecorator(Ingredient ingredient) {
        this.ingredient = ingredient;
    }

    @Override
    public String getDescription() {
        return ingredient.getDescription();
    }

    @Override
    public Double getCost() {
        return ingredient.getCost();
    }
}
